import React, { Component } from 'react'
import { subscribe } from './Bus'

export default class FilmDetail extends Component {
  constructor() {
    super()
    this.state = {
      film: {},
    }
    // 订阅
    subscribe((film) => this.setState({ film }))
  }

  render() {
    let { synopsis = '' } = this.state.film
    return <div className='filmDetail'>{synopsis}</div>
  }
}
